package com.arrogames.blondbattle.game.combat 
{
	/**
	 * ...
	 * @author ...
	 */
	public class Faction 
	{

		public static const HUMAN:String = "humanFaction";
		public static const COMPUTER:String = "computerFaction";
		
		public var name:String = "";
		
		public function Faction( pName:String) {
			if (pName != HUMAN && pName != COMPUTER) {
				throw new Error("Illegal faction name provided: " + pName);
			}
			name = pName;
		}
		
		public function getOtherFaction() : Faction {
			var factionName:String = HUMAN;
			if ( name == HUMAN ) {
				factionName = COMPUTER;
			}
			return new Faction(factionName);
		}
		
	}

}